package com.timber.util;import java.lang.reflect.Method;public class Strings {	public static String join(Object[] elements, String delim) {		StringBuffer sb = new StringBuffer();		for (int i = 0; i < elements.length; i++) {			if (i != 0) { sb.append(delim); }			sb.append("" + elements[i]);		}				return sb.toString();	}		public static String join(Object[] elements, Class clazz, String propertyName, String delim) {		StringBuffer sb = new StringBuffer();		Method m = null;		try {			m = clazz.getMethod(propertyName, null);						for (int i = 0; i < elements.length; i++) {				if (i != 0) { sb.append(delim); }								if (elements[i].getClass() == clazz) {					sb.append(m.invoke(elements[i], null));				}			}		}		catch (Exception e) {// slutils build file doesn't compile to 1.4// not used for now			//			assert false;		}				return sb.toString();	}}